﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Cadastro.aspx.cs" Inherits="VemTransporte.Views.UsuarioEmpresa.Cadastro" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>..:: STI ::..</title>
    <link href="../../Content/Estilo/stylo.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
</head>
<body id="corpo">

    <!-- Div Topo Inicio -->
    <div id="topo">
        <div id="logoTopo"></div>
            <!-- Div Formulário Login Inicio -->
            <div id="formLogin">
           
                
            </div>
            <!-- Div Formulário Login Fim -->
    </div>
    


    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:Label ID="LabelLogoTipo" runat="server" AssociatedControlID="FileUpload1" Text="Logo Tipo"></asp:Label>
        <asp:FileUpload ID="FileUpload1" runat="server" Width="328px" />
        
    </div>
    <br />
    <span class="failureNotification">
        <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
    </span>
    <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
        ValidationGroup="RegisterUserValidationGroup" />
    <asp:Label ID="LabelFantasia" runat="server" AssociatedControlID="TextBoxNomeFantasia"
        Text="Nome Fantasia"></asp:Label>
    <asp:TextBox ID="TextBoxNomeFantasia" runat="server" Width="386px" ValidationGroup="ValidationSummary1"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxNomeFantasia"
        ErrorMessage="Nome Fantasia é obrigatório!" ValidationGroup="RegisterUserValidationGroup"
        CssClass="failureNotification"></asp:RequiredFieldValidator>
    <p>
        <asp:Label ID="LabelRazao" runat="server" AssociatedControlID="TextBoxRazaoSocial"
            Text="Razão Social"></asp:Label>
        <asp:TextBox ID="TextBoxRazaoSocial" runat="server" Width="396px" ValidationGroup="ValidationSummary1"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxRazaoSocial"
            ErrorMessage="Razão Social é obrigatório!" ValidationGroup="RegisterUserValidationGroup"
            CssClass="failureNotification"></asp:RequiredFieldValidator>
    </p>
    <asp:Label ID="LabelInsc" runat="server" AssociatedControlID="TextBoxInscricaoEst"
        Text="Inscrição Estadual"></asp:Label>
    <asp:TextBox ID="TextBoxInscricaoEst" runat="server" Width="274px" ValidationGroup="ValidationSummary1"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBoxInscricaoEst"
        ErrorMessage="Inscricão Estadual é obrigatório!" ValidationGroup="RegisterUserValidationGroup"
        CssClass="failureNotification"></asp:RequiredFieldValidator>
    <p>
        <asp:Label ID="LabelCNPJ" runat="server" AssociatedControlID="TextBoxCNPJ" Text="CNPJ"></asp:Label>
        <asp:TextBox ID="TextBoxCNPJ" runat="server" Width="299px" ValidationGroup="ValidationSummary1"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBoxCNPJ"
            ErrorMessage="CNPJ é obrigatório!" ValidationGroup="RegisterUserValidationGroup"
            CssClass="failureNotification"></asp:RequiredFieldValidator>
    </p>
    <asp:Label ID="LabelEMail" runat="server" AssociatedControlID="TextBoxEMail" Text="E-Mail"></asp:Label>
    <asp:TextBox ID="TextBoxEMail" runat="server" Width="427px" ValidationGroup="ValidationSummary1"></asp:TextBox>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxEMail"
        ErrorMessage="E-Mail inválido!" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
        ValidationGroup="RegisterUserValidationGroup" CssClass="failureNotification"></asp:RegularExpressionValidator>
    <br />
    <br />
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <asp:Label ID="Label1" runat="server" AssociatedControlID="TextBoxTelefone" Text="Telefone"></asp:Label>
            <asp:TextBox ID="TextBoxTelefone" runat="server" Width="165px"></asp:TextBox>
            <asp:Label ID="Label2" runat="server" Text="Descrição"></asp:Label>
            <asp:DropDownList ID="DropDownListTipoTel" runat="server" Height="17px" 
                Width="177px" DataTextField="Descricao" DataValueField="Id">
            </asp:DropDownList>

            <span class="failureNotification">
                <asp:Literal ID="ErrorMessageTelefone" runat="server"></asp:Literal>
            </span>

            <asp:Button ID="ButtonAddTel" runat="server" OnClick="ButtonAddTel_Click" 
                Text="Salvar" />
            <br />
            <br />
            <asp:GridView ID="GridViewTelefone" runat="server" 
                onselectedindexchanged="GridViewTelefone_SelectedIndexChanged" 
                AutoGenerateColumns="False" onrowdeleting="GridViewTelefone_RowDeleting" 
                onrowediting="GridViewTelefone_RowEditing">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:BoundField DataField="Numero" HeaderText="Telefone" />
                    <asp:BoundField DataField="TipoTelefone" HeaderText="Descrição" />
                    <asp:CommandField DeleteImageUrl="~/Content/Imagens/DeleteRed.png" 
                        DeleteText="Remover" ShowDeleteButton="True" ButtonType="Image" />
                    <asp:CommandField ButtonType="Image" 
                        EditImageUrl="~/Content/Imagens/edit-icon.png" EditText="Alterar" 
                        ShowEditButton="True" />
                </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
            <br />
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
        <ProgressTemplate>
            <asp:Image runat="server" ImageUrl="~/Content/gifs/wait_gif.gif" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <p>
                <asp:Label ID="LabelCEP" runat="server" AssociatedControlID="TextBoxCep">CEP:</asp:Label>
                <asp:TextBox ID="TextBoxCep" runat="server" CssClass="textEntry" Width="80px" MaxLength="5"></asp:TextBox>-
                <asp:TextBox ID="TextBoxCEPComplemento" runat="server" CssClass="textEntry" Width="30px"
                    MaxLength="3"></asp:TextBox>
                <asp:Button ID="ButtonBuscaCEP" runat="server" Text="Buscar" OnClick="ButtonBuscaCEP_Click" />
            </p>
            <p>
                <asp:Label ID="LabelEndereco" runat="server" AssociatedControlID="TextBoxEndereco">Endereço:</asp:Label>
                <asp:TextBox ID="TextBoxEndereco" runat="server" CssClass="textEntry" ReadOnly="True"></asp:TextBox>
            </p>
            <p>
                <asp:Label ID="LabelBairro" runat="server" AssociatedControlID="TextBoxBairro">Bairro:</asp:Label>
                <asp:TextBox ID="TextBoxBairro" runat="server" CssClass="textEntry" ReadOnly="True"></asp:TextBox>
            </p>
            <p>
                <asp:Label ID="LabelCidade" runat="server" AssociatedControlID="TextBoxCidade">Cidade:</asp:Label>
                <asp:TextBox ID="TextBoxCidade" runat="server" CssClass="textEntry" ReadOnly="True"></asp:TextBox>
            </p>
            <p>
                <asp:Label ID="LabelEstado" runat="server" AssociatedControlID="TextBoxEstado">Estado:</asp:Label>
                <asp:TextBox ID="TextBoxEstado" runat="server" CssClass="textEntry" ReadOnly="True"></asp:TextBox>
            </p>
        </ContentTemplate>
    </asp:UpdatePanel>
    <p class="submitButton">
        <asp:Button ID="CadastrarButton" runat="server" Text="Cadastrar" OnClick="CadastrarButton_Click" />
    </p>
    </form>
</body>
</html>
